Sufficient conditions for differentiability